package com.sun.listener.event;

import com.sun.pojo.Student;
import org.springframework.context.ApplicationEvent;


public class MyEvent extends ApplicationEvent {
    private Student student;
    public MyEvent(Object source,Student student) {
        super(source);
        this.student = student;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }
}
